package com.jerry.seckill.entity;

import java.util.Date; 

/** 
 * @describe 成功秒杀明细表
 */ 
public class SuccessSeckilled { 
	
	private long seckillId; 
	private String userPhone; 
	private short state; 
	private Date createTime; 
	// 多对一
	private Seckill seckill;
	
	public long getSeckillId() {
		return seckillId;
	}
	public void setSeckillId(long seckillId) {
		this.seckillId = seckillId;
	}
	public String getUserPhone() {
		return userPhone;
	}
	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}
	public short getState() {
		return state;
	}
	public void setState(short state) {
		this.state = state;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Seckill getSeckill() {
		return seckill;
	}
	public void setSeckill(Seckill seckill) {
		this.seckill = seckill;
	} 
	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("seckillId="+seckillId);
		sb.append(",   ");
		sb.append("userPhone="+userPhone);
		sb.append(",   ");
		sb.append("state="+state);
		sb.append(",   ");
		sb.append("createTime="+createTime);
		return sb.toString();
	}
}

